<?php
class js_check extends db
{
    public function index()
    {
        $this->usershell();
        if(!empty($_REQUEST['add_unit_sub']))
        {
            $result = $this->update_userinfo(0, $_REQUEST['add_unit_sub']);
            echo $result;
        }
        
        if($_REQUEST['pid'])
        {
            $result = $this->del_user_by_pid();
            echo $result;
        }
    }
}
?>